#include "vis_eth.h"

inline void qdma_update_irq_cidx(u8* base, u32 qid, u32 ring_idx, u16 cidx)
{


}

inline void qdma_update_h2c_pidx(u8* base, u32 qid, u16 pidx)
{


}

inline void qdma_update_c2h_pidx(u8* base, u32 qid, u16 pidx)
{


}

inline void qdma_update_c2h_cmpt_cidx(u8* base, u32 qid, u16 cidx)
{


}

void qdma_c2h_recv_task(unsigned long arg)
{



}


netdev_tx_t qdma_xmit(struct sk_buff *skb, struct vis_dev *vdev, int type, int qpn)
{
    register struct qdma_h2c_queue *p_queue;
    register struct qdma_st_h2c_descriptor *p_desc_st;
    u16 pidx, hw_cidx, ring_size_minus_1;
    u32 buf_offset, skb_data_len;
    struct ethhdr *hdr;

    p_queue = &vdev->h2c_q[qpn];
    skb_data_len = skb->len;
    pidx = p_queue->pidx;


    if() {

    } else {
        dev_kfree_skb(skb);
    }
    return 0;
}



